#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QWidget>
#include <QSerialPortInfo>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include <QDebug>
#include <QtSerialPort>
#include <QFile>

#include <QTextStream>
QT_BEGIN_NAMESPACE
namespace Ui { class myWidget; }
QT_END_NAMESPACE

class myWidget : public QWidget
{
    Q_OBJECT

public:
    QSerialPort serial;
    myWidget(QWidget *parent = nullptr);
    ~myWidget();
    void Read_Serial_Port_Info(void);
private slots:
    void on_pushButton_clicked();

    void on_pushButton_11_clicked();

    void on_pushButton_2_clicked();
    void serialPort_readyRead();
    void on_timeout();

    void on_open_Button_clicked();

    void on_checkBox_3_stateChanged(int arg1);

    void on_textBrowser_cursorPositionChanged();

    void on_textBrowser_textChanged();

    void on_checkBox_stateChanged(int arg1);

    void on_checkBox_5_stateChanged(int arg1);
    void on_time1_timeout();
    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_6_clicked();

    void on_pushButton_7_clicked();

    void on_pushButton_8_clicked();

    void on_pushButton_9_clicked();

    void on_pushButton_10_clicked();

    void on_pushButton_12_clicked();

    void on_pushButton_13_clicked();

private:
    Ui::myWidget *ui;
    QTimer *timer;
    QFile *file;
    QTimer *timer1;
};
#endif // MYWIDGET_H
